package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Statement;
import cn.wolfcode.car.business.query.StatementQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface StatementMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Statement record);

    Statement selectByPrimaryKey(Long id);

    List<Statement> selectAll();

    int updateByPrimaryKey(Statement record);

    List<Statement> selectForList(StatementQuery qo);

    void updateStatementById(Statement statement);


    void payStatement(@Param("statementId") Long statementId, @Param("uid") Long id, @Param("date") Date date, @Param("statusPaid") Integer statusPaid);

    Statement selectStatementByAppointmentId(Long id);
}